package cn.gson.crmdemo.model.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.alibaba.fastjson.JSONArray;


import cn.gson.crmdemo.model.dao.ThDao;
import cn.gson.crmdemo.model.mapper.ThMapper;

@Service
@Transactional(rollbackFor=Exception.class)

public class ThService {
	@Autowired
	ThDao Th;
	@Autowired
	ThMapper Th2;
	/*
	 * 查询所有产品信息
	 */
	public JSONArray selectReturnes() {
		return Th2.selectReturne();
		
	}
	//退货模糊查询
			public JSONArray selectZt(String zt) {
				return Th2.selectZt(zt);
				
			}
	//是否退款
			public JSONArray selecttk(Integer y) {
				return Th2.selecttk(y);
			}
}
